package practiceTest.chap04.work3;

import practiceTest.chap04.work2.Deque;

/**
 * Created by root on 2017/7/14.
 */
public class StackY {

    private Deque deque;

    public StackY(int s){
        deque = new Deque(s);
    }

    public void push(long item){
        deque.insertRight(item);
    }

    public long pull(){
        return deque.removeRight();
    }

    public boolean isEmpty(){
        return deque.isEmpty();
    }

    public boolean isFull(){
        return deque.isFull();
    }

}
